package com.nayun.gjh.xiaokabanghou.service;

import com.nayun.gjh.xiaokabanghou.model.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.nayun.gjh.xiaokabanghou.model.request.SafetyUpdateUserRequest;
import com.nayun.gjh.xiaokabanghou.model.request.SafetyUserRequest;
import com.nayun.gjh.xiaokabanghou.model.response.SafetyLoginResponse;
import com.nayun.gjh.xiaokabanghou.model.response.SafetyUserResponse;
import org.springframework.http.HttpRequest;

import javax.servlet.http.HttpServletRequest;

/**
* @author tsin0
* @description 针对表【user】的数据库操作Service
* @createDate 2024-02-03 16:54:55
*/
public interface UserService extends IService<User> {

    String userLogin(String phone,HttpServletRequest httpServletRequest) throws Exception;

    Boolean updatecardInfor(SafetyUpdateUserRequest safetyUpdateUserRequest, SafetyUserRequest loginUser) throws Exception;

    SafetyUserResponse cardInfor(SafetyUserRequest loginUser) throws Exception;
    Boolean cardStatusToRecord(SafetyUserRequest loginUser) throws Exception;

    Boolean cardStatusToFind(SafetyUserRequest loginUser) throws Exception;

    SafetyLoginResponse getSafetyUser(SafetyUserRequest loginUser);

    String sendCode(SafetyUserRequest loginUser) throws Exception;

    String userSafetyCheck(String sixCode,SafetyUserRequest loginUser,HttpServletRequest httpServletRequest) throws Exception;

    SafetyLoginResponse getSafetyUser2(SafetyUserRequest loginUser);

}
